home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20020314-20021006
/
000160_fdc@columbia.edu_Mon Jun 17 11:50:38 EDT 2002.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
60 lines
Article: 13464 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: voice connection question!
Date: 17 Jun 2002 11:50:27 -0400
Organization: Columbia University
Lines: 43
Message-ID: <ael0g3$oj0$1@watsol.cc.columbia.edu>
References: <aeg0np$70r$01$1@news.t-online.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1024329028 25770 128.59.39.139 (17 Jun 2002 15:50:28 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 17 Jun 2002 15:50:28 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13464
In article <aeg0np$70r$01$1@news.t-online.com>,
Roland H�pfner <rollo@gmx.net> wrote:
: I am very new in writing scripts in kermit, thats why my question must be
: very simple to answer! ;-)
: I wrote a script, that will estabilish a voice-connection from my ISDN card
: to a telephone! That works, here it is:
:
: set line /dev/ttyI0
: set carrier-watch off
: output AT z &e50579002\13
: input 3 OK
: output ats18=1\13
: input 3 OK
: output atd50579002\13
:
: Now I want, that if the voice connection is canceled or the connection
: couldn't established, the script will try to redial or to make a new
: connection until I stop the script!
:
What is the modem's response to the ATD command when the voice call is
successful? What does the modem say when the modem call is unsuccessful or
is canceled? What does the modem say when the connection hangs up? Under
what circumstances do you want the script to stop redialing? Write your
script to look for these strings and do the appropriate thing for each one.
I don't know the answers to these questions so I can't write your script for
you, but you could use a WHILE loop containing an MINPUT command to look
for the various response, like this:
...
output ats18=1\13
input 3 OK
while true {
output atd50579002\13
minput -1 "VOICE" "BUSY" "NO ANSWER" ...
switch \v(minput) {
:1, (wait for message indicating hangup), continue
:2, sleep 30, continue
:3, stop 1 "Number does not answer"
(etc etc)
}
}
- Frank